\documentclass[12pt]{article}
\usepackage[brazil]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{ae}
\usepackage{times}
\usepackage{txfonts}
\usepackage[a4paper,top=3cm,left=3cm,right=3cm,bottom=3cm]{geometry}
\usepackage{setspace}
\usepackage[parfill]{parskip}
\usepackage{titlesec}
\usepackage{sectsty}
\usepackage{url}
\usepackage[alf]{abntcite}
\usepackage{array}

\usepackage{color}
\usepackage{listings}
\usepackage{caption}

\usepackage{booktabs}

\lstset{
  basicstyle=\footnotesize\ttfamily,
  %numbers=left,
  %numberstyle=\tiny,
  stepnumber=1,
  numbersep=5pt,
  tabsize=2,                  % Groesse von Tabs
  extendedchars=true,         %
  breaklines=true,            % Zeilen werden Umgebrochen
  keywordstyle=\bfseries,
  %frame=tblr,
  showspaces=false,           % Leerzeichen anzeigen ?
  showtabs=false,             % Tabs anzeigen ?
  xleftmargin=17pt,
  framexleftmargin=17pt,
  framexrightmargin=5pt,
  framexbottommargin=4pt,
  showstringspaces=false,
}
\lstloadlanguages{
  C, Tcl
}

\DeclareCaptionFont{black}{\color{black}}
%\DeclareCaptionFormat{listing}{\colorbox[cmyk]{0.43, 0.35,
%0.35,0.01}{\parbox{\textwidth}{\hspace{15pt}#1#2#3}}}
\DeclareCaptionFormat{listing}{#1#2#3}
\captionsetup[lstlisting]{format=listing, textfont=black,
  }%font=footnotesize}%font={bf,footnotesize}}

%\renewcommand*\lstlistingname{Código}

\usepackage{graphicx}

\newcommand{\digraph}[3][scale=1]{
  \newwrite\dotfile
  \immediate\openout\dotfile=#2.dot
  \immediate\write\dotfile{digraph #2 {\string#3}}
  \immediate\closeout\dotfile
  \IfFileExists{#2.ps}
  % the postscript exists: include it
  { \includegraphics[#1]{#2} }
  % the postscript doesn’t exist: tell the user how to create it
  { \fbox{ \begin{tabular}{l}
      The file \texttt{#2.ps} hasn’t been created from
      \texttt{#2.dot} yet. \\
      Run ‘\texttt{dot -Tps -o #2.ps #2.dot}’ to create it. \\
      Here is a \textsf{bash} loop to process all \textsf{dot}
      files in the current directory: \\
      \texttt{
        for f in *.dot do ;
        dot -Tps -o \$\{f\%dot\}ps \$f ;
        done
      }
    \end{tabular}}
  }
}


\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt}
\onehalfspacing
\titlespacing{\section}{0pt}{6pt}{6pt}
\makeatletter
\sectionfont{\fontfamily{phv}\fontseries{b}\fontsize{14}{\f@baselineskip}\selectfont}
\subsectionfont{\fontfamily{phv}\fontseries{b}\fontsize{13}{\f@baselineskip}\selectfont}

\newcommand{\instituicao}{Universidade Estadual de Maringá \\
Centro de Tecnologia \\
Departamento de Informática \\
Bacharelado em Ciência da Computação \\
\hfill}
\newcommand{\tcc}{Trabalho de Conclusão de Curso - TCC 2010}
\newcommand{\titulo}{Tcl JIT}
\newcommand{\autor}{Guilherme Henrique Polo Gonçalves}
\newcommand{\orientador}{Prof. Dr. Anderson Faustino da Silva}
\newcommand{\local}{Maringá}

\newcommand*{\textbfsf}[1]{\textbf{\textsf{#1}}}

\pdfinfo{
  /Author (\autor)
  /Title (\titulo)
  /Keywords (Tcl;JIT;código de máquina)
}

\begin{document}

% Capa
\begin{titlepage}
  \begin{center}
    {\Large \textbfsf \instituicao}\\
    {\large \textbfsf \tcc}
    \vfill
    {\large \textbfsf \titulo\\\vfill Relatório Técnico 2}
    \vfill
    \autor\\
    Orientador: \orientador\\ % XXX
  \end{center}

  \vfill

  % Assinaturas
  \begin{flushright}
    \begin{minipage}{0.55\textwidth}
      \vbox{
        \rule{\textwidth}{0.5pt} \par
        \begin{center}\autor\end{center}
        \vskip 0.35in
        \rule{\textwidth}{0.5pt} \par
        \begin{center}\orientador\end{center}}
    \end{minipage}
  \end{flushright}
  % Local e data
  \vfill
  \begin{center}
    \local, \@date
  \end{center}

\end{titlepage}

% Segunda página com resumo.
\clearpage
\thispagestyle{empty}
\begin{center}
  {\large \textbfsf \titulo}\\
  \quad\\
  \autor\\
  Orientador: \orientador\\ % XXX
  \quad\\
\end{center}
\input{resumo}
\newpage

% Conteúdo da proposta de projeto.
\setcounter{page}{1}
\include{conteudo}

\end{document}
